package GUI;

import java.awt.Font;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import com.jgoodies.forms.factories.DefaultComponentFactory;
import javax.swing.JTextField;
import javax.swing.JTextArea;
import javax.swing.JComboBox;
import javax.swing.DefaultComboBoxModel;

public class ExtensionRequest_GUI extends JPanel {

	private JButton btnCancel;
	private JButton btnSubmit;
	private JTextArea argument;
	private JComboBox numDays;
	
	public ExtensionRequest_GUI(){
		setLayout(null);
		
		JLabel lblDetermineStageDuration = DefaultComponentFactory.getInstance().createTitle("Extension request");
		lblDetermineStageDuration.setIcon(new ImageIcon(DetermineStageDuration_GUI.class.getResource("/Picture/time-icon.png")));
		lblDetermineStageDuration.setFont(new Font("David", Font.BOLD | Font.ITALIC, 17));
		lblDetermineStageDuration.setBounds(20, 11, 335, 128);
		add(lblDetermineStageDuration);
		
		JLabel lblRequiredChange = new JLabel("Enter number of days to extend:");
		lblRequiredChange.setBounds(20, 160, 172, 30);
		add(lblRequiredChange);
		
		JLabel lblProfit = new JLabel("Enter your argument:");
		lblProfit.setBounds(20, 223, 121, 14);
		add(lblProfit);
		
		btnCancel = new JButton("Cancel");
		btnCancel.setIcon(new ImageIcon(Login.class.getResource("/Picture/Button-Close-icon.png")));
		btnCancel.setBounds(28, 497, 141, 47);
		add(btnCancel);
		
		btnSubmit = new JButton("Submit");
		btnSubmit.setIcon(new ImageIcon(Login.class.getResource("/Picture/Ok-icon.png")));
		btnSubmit.setBounds(299, 497, 141, 47);
		add(btnSubmit);
		
		argument = new JTextArea();
		argument.setBounds(35, 259, 360, 108);
		add(argument);
		
		numDays = new JComboBox();
		numDays.setModel(new DefaultComboBoxModel(new String[] {"", "1", "2", "3", "4", "5", "6", "7"}));
		numDays.setBounds(202, 165, 141, 25);
		add(numDays);
	}

	public JButton getBtnCancel() {
		return btnCancel;
	}

	public void setBtnCancel(JButton btnCancel) {
		this.btnCancel = btnCancel;
	}

	public JButton getBtnSubmit() {
		return btnSubmit;
	}

	public void setBtnSubmit(JButton btnSubmit) {
		this.btnSubmit = btnSubmit;
	}

	

	public JComboBox getNumDays() {
		return numDays;
	}

	public void setNumDays(JComboBox numDays) {
		this.numDays = numDays;
	}

	public JTextArea getArgument() {
		return argument;
	}

	public void setArgument(JTextArea argument) {
		this.argument = argument;
	}
	
	
}
